package com.example.dell.utils;

import android.widget.Toast;

import com.example.dell.basic.AppComplication;

public class ToastUtils {
    private static Toast toast = null;

    public static void showToast(String text) {
        if (toast == null) {
            toast = Toast.makeText(AppComplication.mContext, text, Toast.LENGTH_SHORT);
        } else {
            toast.setText(text);
            toast.show();
        }


    }
}
